#include <stdio.h>

unsigned int multiply(unsigned int x,unsigned int y){
    unsigned int result = 0;
    while(y!=0){
        if(y & 1){
            result+=x;
        }
        x<<=1;
        y>>=1;

    }
    return result;
}
int main() {
    unsigned int a, b;
    printf("请输入两个无符号整数: ");
    scanf("%u %u", &a, &b);
    
    unsigned int product = multiply(a, b);
    printf("%u × %u = %u\n", a, b, product);
    
    return 0;
}